package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.onlyforcheckerMapper;
import com.ruoyi.system.domain.onlyforchecker;
import com.ruoyi.system.service.IonlyforcheckerService;

/**
 * 养护抽检Service业务层处理
 * 
 * @author xjj
 * @date 2022-05-17
 */
@Service
public class onlyforcheckerServiceImpl implements IonlyforcheckerService 
{
    @Autowired
    private onlyforcheckerMapper onlyforcheckerMapper;

    /**
     * 查询养护抽检
     * 
     * @param recordId 养护抽检主键
     * @return 养护抽检
     */
    @Override
    public onlyforchecker selectonlyforcheckerByRecordId(Long recordId)
    {
        return onlyforcheckerMapper.selectonlyforcheckerByRecordId(recordId);
    }

    /**
     * 查询养护抽检列表
     * 
     * @param onlyforchecker 养护抽检
     * @return 养护抽检
     */
    @Override
    public List<onlyforchecker> selectonlyforcheckerList(onlyforchecker onlyforchecker)
    {
        return onlyforcheckerMapper.selectonlyforcheckerList(onlyforchecker);
    }

    /**
     * 新增养护抽检
     * 
     * @param onlyforchecker 养护抽检
     * @return 结果
     */
    @Override
    public int insertonlyforchecker(onlyforchecker onlyforchecker)
    {
        return onlyforcheckerMapper.insertonlyforchecker(onlyforchecker);
    }

    /**
     * 修改养护抽检
     * 
     * @param onlyforchecker 养护抽检
     * @return 结果
     */
    @Override
    public int updateonlyforchecker(onlyforchecker onlyforchecker)
    {
        return onlyforcheckerMapper.updateonlyforchecker(onlyforchecker);
    }

    /**
     * 批量删除养护抽检
     * 
     * @param recordIds 需要删除的养护抽检主键
     * @return 结果
     */
    @Override
    public int deleteonlyforcheckerByRecordIds(Long[] recordIds)
    {
        return onlyforcheckerMapper.deleteonlyforcheckerByRecordIds(recordIds);
    }

    /**
     * 删除养护抽检信息
     * 
     * @param recordId 养护抽检主键
     * @return 结果
     */
    @Override
    public int deleteonlyforcheckerByRecordId(Long recordId)
    {
        return onlyforcheckerMapper.deleteonlyforcheckerByRecordId(recordId);
    }
}
